public class PekingDuck extends Duck {
    public PekingDuck(String color, double heavy) {
        super(color, heavy);
    }

    public void setHeavy(String heavyStr) {
        this.heavy = Double.parseDouble(heavyStr);
    }

    @Override
    public void fly() {
        System.out.println("北京鸭飞得低且近");
    }

    @Override
    public void quack() {
        System.out.println("北京鸭嘎嘎叫，声音轻柔");
    }
}